set(TARGET_TEST_LINK_LIBS xlcomm_base xlcomm_net pthread)

set(MY_TEST_BIN
  myrpc_client
  myrpc_server
)
FOREACH(test ${MY_TEST_BIN})
  add_executable(${test} ${test}.cc)
  target_link_libraries(${test} ${TARGET_TEST_LINK_LIBS})
ENDFOREACH(test)